{template "content","header"}
<!-- 引入了 header.html -->

<!--main-->
<div class="main">
	<div class="col-left">
            <!-- "{}"类似于 <?php ?> -->
    	<div class="crumbs"><a href="{siteurl($siteid)}">首页</a><span> > </span>{catpos($catid)} 列表</div>

            <!-- pc 标签 请求获取到列表数据   action 是操作方法 catid是栏目id num order page 分页排序 -->
    	{pc:content action="lists" catid="$catid" num="25" order="id DESC" page="$page"}
            <ul class="list lh24 f14">
            {loop $data $r}
            <!-- loop 等于 foreach   foreach $data as $v -->

                	<li><span class="rt">{date('Y-m-d H:i:s',$r[inputtime])}</span>·<a href="{$r[url]}" target="_blank"{title_style($r[style])}>{$r[title]}</a></li>
                	{if $n%5==0}<li class="bk20 hr"></li>{/if}
                         <span>惊喜价</span><b>{$r[price]} 元</b>
                         <img src="{$r[thumb]}" alt="" width="300" height="200">
                         <hr/>

            {/loop}
            </ul>
                    <div id="pages" class="text-c">{$pages}</div>
            {/pc}
  </div>
    <div class="col-auto">
        <div class="box">
            <h5 class="title-2">频道总排行</h5>
             {pc:content action="hits" catid="$catid" num="10" order="views DESC" cache="3600"}
            <ul class="content digg">
				{loop $data $r}
					<li><a href="{$r[url]}" target="_blank">{$r[title]}</a></li>
				{/loop}
            </ul>
            {/pc}
        </div>
        <div class="bk10"></div>
        <div class="box">
            <h5 class="title-2">频道本月排行</h5>
             {pc:content action="hits" catid="$catid" num="8" order="monthviews DESC" cache="3600"}
            <ul class="content rank">
				{loop $data $r}
				<li><span>{number_format($r[monthviews])}</span><a href="{$r[url]}"{title_style($r[style])} class="title" title="{$r[title]}">{str_cut($r[title],56,'...')}</a></li>
				{/loop}
            </ul>
            {/pc}
        </div>
    </div>
</div>
{template "content","footer"}